package 学生实验室勤工俭学模拟;



public class Student {
	public String name;
	public String level;
	public double postIncome;
	public double income;
	public Lab lab;

	
	//获取学生名称
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	//获取学生负责的实验室卫生评分
	public String getLevel() {
		return level;
	}
	public void setLevel(String level) {
		this.level = level;
	}
	//获取学生补助收入
	public double getIncome(double M) {
		M = income;
		return income;
	}
	public void setIncome(double income) {
		this.income = income;
	}

public double getpostIncome(){
	return postIncome;
}
public void setpostIncome(double postIncome) {
	//当学生的收入超过3000，月税率为0.05，一共清洁16周，即4个月
	if(income>3000) {
	postIncome = (1 - 0.05)*income;
	}
}


}

//Random L = new Random(4)